package com.jctrip.hotel.source.client;

import com.jctrip.hotel.source.model.meituan.req.MeituanReq;
import com.jctrip.hotel.source.model.meituan.resp.MeituanResp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author: zxy
 * @CreateTime: 2023-12-25 15:20
 * @Description:
 */
@FeignClient(name = "MeituanClient", url = "${feign.url.meituan}")
@RequestMapping(headers = {"accept=application/json"})
public interface MeituanClient {
    @PostMapping("")
    MeituanResp callMeituan(@RequestBody MeituanReq req);
}
